﻿using Max.PH4_2102A.Shopping.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH4_2102A.Shopping.IService
{
    /// <summary>
    /// 品牌的服务接口
    /// </summary>
    public interface IBrandService
    {
        int Insert(BrandModel model); //添加
        int Update(BrandModel model); //修改
        int Delete(BrandModel model); //删除
        int Delete(List<BrandModel> brands); //批量删除
        IQueryable<BrandModel> GetAll(); //获取所有数据
        IQueryable<BrandModel> GetAll(string brandName); //根据品牌名称查询所有数据

        //根据品牌名称查询并分页
        IQueryable<BrandModel> GetAll(string brandName,int pageIndex,int pageSize,out int total);

        //根据品牌名称查询、排序并分页
        IQueryable<BrandModel> GetAll(string brandName, bool isAsc, int pageIndex, int pageSize, out int total);



    }
}
